<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?>﻿<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>小成博客（Blog）—专业PHP技术博客，专注于互联网软件开发和信息安全</title>
<meta name="author" content="小成" />
<meta name="copyright" content="CopyRight © 2010~2012 小成版权所有" />
<meta name="keywords" content="php mysql,php学习,apache 配置,js indexof,ajax技术,php blog,php session,thinkphp,sphinx,php递归函数,php递归算法" />
<meta name="description" content="小成博客，一个专注PHP程序开发，专注于互联网产品，研究PHP Apache mysql linux等开源技术，探讨计算机应用，分享学习与生活的IT技术博客" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="http://localhost/kksblog/Index/Tpl/Public/css/global.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/kksblog/Index/Tpl/Public/css/default.css" />
<script type="text/javascript" src="http://localhost/kksblog/Index/Tpl/Public/Js/jquery.js"></script>
<script type="text/javascript" src="http://localhost/kksblog/Index/Tpl/Public/Js/common.js"></script>
<script type="text/javascript" src="http://localhost/kksblog/Index/Tpl/Public/js/blog.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="http://localhost/kksblog/Index/Tpl/Public/Js/PNG.js"></script>
{literal}
<style>
* html,* html body {background-image:url(about:blank);background-attachment:fixed;}
</style>
{/literal}
<![endif]-->
<script type="text/javascript">
var URL = 'Index';
var APP	 =	'';
var PUBLIC = 'Public';
</script>
</head>

<body class="body_bg">
<!--头部-->
<div class="top_float png">
	<div class="wide">
    	<div class="logo png">
        	<a href=""></a>
        </div>
        <div class="nav">
        	<a href="/">首页</a>
            <!-- <?php $hd["list"]["n"]["total"]=0;if(isset($category) && !empty($category)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($category));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($category,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

            	<a href="#"><?php echo $n['cname'];?></a>
            <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?> -->
            <a href="http://localhost/kksblog/index.php/wish/index">许愿墙</a>
            <a href="http://localhost/kksblog/index.php/wish/index">许愿墙</a>
            <a href="about">关于我</a>
        </div>
        <div class="nav_right">
        	<div class="weibo_login">
            	&nbsp;
            </div>
            <div class="clr"></div>
        	<form action="" method="get"  class="search">
        		<input name="k" class="inp_text search_k" id="search_k" maxlength="20" value="" />
                <input type="submit" class="search_btn cursor" id="search_btn" value="搜 索" />
            </form>
        </div>
        <div class="clr"></div>
    </div>
</div>
<div class="clr"></div>

<!--或是"http://localhost/kksblog/Index/Tpl/Public/header"-->

<script type="text/javascript" src="http://localhost/kksblog/Index/Tpl/Public/Js/jquery.lazyload.min.js"></script>
<script type="text/javascript">
$(function(){
	$("img.lazy").lazyload({ effect : "fadeIn" });
	//$("img.lazy").lazyload({ threshold : 200 }); //提前加载
	//$("img.lazy").lazyload({ event : "click" }); //时间加载
	//$("img.lazy").lazyload({ effect : "fadeIn" }); //加载效果
	////加载不可见图片如（display:none）如果我们需要用它加载不可见图像，我们需要将 skip_invisible 设置为 false
	//$("img.lazy").lazyload({ skip_invisible : false }); 
	//$("img.lazy").lazyload({ container: $("#container") }); //把图片加载进某个容器
})
</script>

<div class="main">
	<div class="wide">
        	<div class="main_left" id="article_list">
            <?php $hd["list"]["n"]["total"]=0;if(isset($article) && !empty($article)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($article));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($article,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

        		<div class="main_art_box">
                	<div class="main_art_box_l">
                    	<div class="main_art_box_l_date png">
                        	<div class="main_art_box_l_date_m">
                            	<?php echo date('Y-m',$n['time']);?>                        </div>
                        	<div class="main_art_box_l_date_d">
                            	<?php echo date('d',$n['time']);?>                        </div>
                        </div>
                    </div>
                    <div class="main_art_box_r">
                    	<h2 class="main_art_box_r_t">
                            <a class="art_list_title" href="#" title="<?php echo $n['title'];?>"><?php echo $n['title'];?></a>
                        </h2>
                        	<a href="#" class="art_img"></a>
                                 <?php echo $n['intro'];?>

                            <a href="#" title="<?php echo $n['title'];?>" class="read_all fr">阅读全文»</a>
                        <div class="clr"></div>
                        <div class="main_art_box_r_a">
                        	<span class="fl">作者：小成</span><span class="fl">|</span>
                            <span class="fl">分类：</span>
                                <a href="" class="fl" ><?php echo $n['cname'];?></a><span class="fl">|</span>
                            <span class="fl">阅读：<?php echo $n['click'];?>次</span><span class="fl">|</span>
                            <!-- <span class="fl">标签：</span>
                                <a href="#" title="" class="fl" style="margin-right:5px;"></a>
                                <a href="" title="" class="fl" style="margin-right:5px;"></a> -->
                            <a href="#" title="#" class="fr">评论（0）</a>
                        </div>
                    </div>
                </div>
            
            <div class="clr main_art_box_mar"></div>
            <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>            
                <div class="fr subpage"> 
                    <?php echo $page;?>
                </div>
            </div>
       <?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?> <!--右侧公用-->
        <!--公共右侧-->
        <div class="main_right">
        	<div class="main_right_p">
                <div class="main_right_box">
                    <a href="Photo" title="">
                    	<img src="me.jpg" title="" />
                    </a>
                    <div class="main_right_box_i">
                        <span class="main_right_box_i_t bo">
                        </span><br />
				          <br />
				          <br />
                    </div>
                    
                </div>
            </div>
            <div class="main_right_line_box"></div>
            <!-- 最新文章 -->
            <div class="main_right_box right_cate hot_arts">
            	<h3><a class="fl focus">最新文章</a><a class="fr">推荐文章</a></h3>
                <ul>
                    <?php $hd["list"]["n"]["total"]=0;if(isset($newarticle) && !empty($newarticle)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($newarticle));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($newarticle,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

                	   <li><a href="<?php echo U('article', array('aid'=>$n['aid']));?>" title="<?php echo $n['title'];?>">» <?php echo $n['title'];?></a></li>
                    <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                </ul>
                <ul class="hide">
                	<?php $hd["list"]["n"]["total"]=0;if(isset($newarticle) && !empty($newarticle)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($newarticle));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($newarticle,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

                       <li><a href="<?php echo U('article', array('aid'=>$n['aid']));?>" title="<?php echo $n['title'];?>">» <?php echo $n['title'];?></a></li>
                    <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>                
                </ul>
            </div>
            <!-- 分类归档 -->
            <div class="main_right_box right_cate">
            	<h3>分类归档</h3>
                <ul>
                    <?php $hd["list"]["n"]["total"]=0;if(isset($category) && !empty($category)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($category));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($category,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

                    	<li><a href="" class="" title="#">» <?php echo $n['cname'];?><!-- （<label></label>） --></a>
                        </li>
                    <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                </ul>
            </div>
            <!-- 日期归档 -->
            <div class="main_right_box right_cate right_date">
            	<h3>日期归档</h3>
                <ul>
                	<li><a href="#" class="" title="">» 2013年10月（<label>1</label>）</a></li>
                </li>                
            </ul>
            </div>
            <!-- 标签云集 -->
            <!-- <div class="main_right_box right_cate right_tag">
            	<h3>标签云集</h3>
                <ul>
                	<li>
                	   <a href="#" alt="" class="" title="mysql" style="background:#EE33EE">php</a>
                    </li>
                </ul>
            </div> -->
            <!-- 博客统计 -->
            <div class="main_right_box right_cate right_total">
            	<h3>博客统计</h3>
                <ul>
                	<li><a>文章总数：<?php echo $total['article'];?> 篇</a></li>
                	<li><a>评论总数：<?php echo $total['comment'];?> 条</a></li>
                	<!-- <li><a>标签数量：1 个</a></li> -->
                	<!-- <li><a>链接数量：1 个</a></li> -->
                    <li><a>浏览总数：<?php echo $total['click'];?>   次</a></li>
                	<li><a>建站日期：2013-10-1</a></li>
                </ul>
            </div>
            <!-- 最新评论 -->
            <div class="main_right_box right_cate right_link">
            	<h3 style="display:block;"><span class="fl">最新评论</span>
                	<div class="clr"></div>
                </h3>
                <ul>
                    <?php $hd["list"]["n"]["total"]=0;if(isset($newComment) && !empty($newComment)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($newComment));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($newComment,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

                	   <li><span class="fl">»</span><a href="<?php echo U('article', array('aid'=>$n['aid']));?>" title="<?php echo $n['content'];?>"><?php echo $n['content'];?></a><span class="fr">[游客]</span></li>
                    <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>               
                </ul>
            </div>
            <div class="main_right_box right_cate right_link">
            	<h3 style="display:block;"><span class="fl">友情链接</span><a class="fr fz12" href="http://wpa.qq.com/msgrd?uin=192796875&site=qq" style="font-size:13px; color:#0066CC;">+在线申请</a>
                	<div class="clr"></div>
                </h3>
                <ul>
                	<li><span class="fl">» </span><a href="http://www.timexz.com" target="_blank" title="小成博客">小成博客</a></li>
                </ul>
            </div>
            
        </div>
        <div class="clr"></div>
        
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?>        <!--滚屏-->
        <!--滚屏-->
        <div id="roll">
            <div id="roll_top" title="回到顶部"></div>
            <div id="center" title="查看评论"></div>
            <div id="roll_bottom" title="转到底部"></div>
        </div>
    </div>
    <div class="clr"></div>
</div>
<div class="clr"></div>


﻿<div class="footer">
	<p align="center">
	<span style="line-height:3;font-family:SimSun;">CopyRight &copy; 2010~2013&nbsp;小成&nbsp;版权所有&nbsp; </span><span style="line-height:3;font-family:SimSun;">广告</span><span style="line-height:3;font-family:SimSun;">联系</span><span style="line-height:3;font-family:SimSun;">电话：15616240504</span><span style="line-height:3;font-family:SimSun;">　联系</span><span style="line-height:3;font-family:SimSun;">邮箱：<a href="mailto:192796875@qq.com">192796875@qq.com</a></span> 
</p>    <div style=" height:20px; text-align:center; width:80px; margin:0px auto;">
    </div>
    <div style=" height:20px; text-align:center; width:100%;">
    <br/>

    <br/><br/>
    </div>
    <div class="clr"></div>
</div>

<!--底部  回到顶部-->
<div class="back_top png">
	<div class="wide">
    	
        <div class="clr"></div>
    </div>
</div>
<div class="clr"></div>
</body>
</html>

